package cn.broadsense.thrid.result;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 告警订阅列表
 *
 * @author pengxin
 * @date 2022-10-22 15:58
 */
@NoArgsConstructor
@Data
public class AlarmSubscribePageResult implements Serializable {


    private String countId;
    private Integer current;
    private Integer maxLimit;
    private Boolean optimizeCountSql;
    private List<OrdersResult> orders;
    private Integer pages;
    private List<RecordsResult> records;
    private Boolean searchCount;
    private Integer size;
    private Integer total;

    @NoArgsConstructor
    @Data
    public static class OrdersResult {
        private Boolean asc;
        private String column;
    }

    @NoArgsConstructor
    @Data
    public static class RecordsResult {
        private String algorithmId;
        private String algorithmName;
        private String applyId;
        private String channelCode;
        private String channelName;
        private String expireStatus;
        private Integer id;
        private String subscribeAddress;
        private Integer subscribeStatus;
        private String taskId;
        private String taskName;
        private String validPeriod;
    }
}
